
import { useRoutes } from 'react-router-dom';
import NestedRoute from './NestedRoute';



export interface RouterProps {
  path: string;
  element: string;
  title?: string;
  children?: RouterProps[];
}


export const routes: RouterProps[] = [
  {
    path: '/login',
    element: 'pages/Home',
    children: [
      {
        path: '/login/home',
        element: 'pages/Login',
      },
    ],
  },
]

const Index = () => {
  return useRoutes(NestedRoute(routes))
};

export default Index;